/*
 * Copyright 2013-2015 the original author or authors.
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.xdtech.hotel.protocol.vo;

import com.xdtech.web.freemark.item.GridColumn;

/**
 * 
 * @author max.zheng
 * @create 2015-4-27下午9:50:23
 * @since 1.0
 * @see
 */
public class Node extends Component{

	@GridColumn(title="节点状态",width=100)
	private String status; // : “on” , #可选参数：on/off/blink-开/关/闪烁； 
	@GridColumn(title="闪烁频率",width=100)
	private String freq;   // : “0” , #可选参数：0-n,闪烁频率，单位秒； 
	@GridColumn(title="延迟秒数",width=100)
	private String delay;  // : “0” #可选参数：0-n,延时时间，单位秒； 
	
	private String type;
	public Node() {
		super();
	}
	public Node(String type,String addr, String channel, String status, String freq,
			String delay) {
		super();
		this.type = type;
		this.addr = addr;
		this.channel = channel;
		this.status = status;
		this.freq = freq;
		this.delay = delay;
	}
	public String getStatus() {
		return status;
	}
	public void setStatus(String status) {
		this.status = status;
	}
	public String getFreq() {
		return freq;
	}
	public void setFreq(String freq) {
		this.freq = freq;
	}
	public String getDelay() {
		return delay;
	}
	public void setDelay(String delay) {
		this.delay = delay;
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	
	public CmdNode createCmdNode() {
		return new CmdNode(this.addr, this.channel, this.status, this.freq, this.delay);
	}
	
}
